<div class="msg_single<?php echo ($is_read == true) ? '' : ' msg_new'; ?>" id="<?php echo $repost_id; ?>">
    <div class="msg_left">
        <a href="home/<?php echo $user_id; ?>">
            <i class="re_avatar <?php echo ($gender == 0) ? 'avatar-default50f' : 'avatar-default50m'; ?>"></i>
        </a>
        <div>
            <div class="re_user">
                <a href="home/<?php echo $user_id; ?>" target="_blank"><?php echo $nickname; ?></a>：
            </div>
            <div class="re_content">
            <?php
                $de_content = de_format($repost_content);
                echo '
                    <a href="' . post_link($post_id, $repost_id, $level_no) . '" title="' . htmlspecialchars($de_content) . '" target="_blank">' .
                        trunc($de_content, (($is_read == true) ? 32 : 30)) .
                    '</a>
                ';
            ?>
            </div>
            <div class="re_from">
            <?php
            if ($self == $post_user_id) {
                echo '
                    <span class="msg_text">回复我的主题：“</span>
                    <a href="' . post_link($post_id) . '" title="' . $post_title . '" target="_blank">' . 
                        trunc($post_title, (($is_read == true) ? 24 : 22)) . 
                    '</a>
                    ”
                ';
            } else {
                $de_content = de_format($re_repost_content);
                echo '
                    <span class="msg_text">回复我的回帖：“</span>
                    <a href="' . post_link($post_id, $re_repost_id, $re_level_no) . '" title="' . htmlspecialchars($de_content) . '" target="_blank">' . 
                        trunc($de_content, (($is_read == true) ? 24 : 22)) . 
                    '</a>
                    ”
                ';
            }
            ?>
            </div>
        </div>
    </div>
    <div class="msg_right">
        <div>
            <i class="icon-time"></i>    
            发表于 <?php echo value_to_timestamp($repost_time); ?>
        </div>
        <i class="icon-comment"></i>
        <a href="<?php echo post_link($post_id, $repost_id, $level_no); ?>" target="_blank">回复</a>
    </div>
</div>